package model;

import java.util.HashMap;
import java.util.Map;

import org.json.JSONException;
import org.json.JSONObject;

public class Zom implements Comparable<Zom>{

	public final static String key="7";
    String zoom,id,id_lokalizacji;
    public String getZom()
    {
            return zoom;
    }
    public Zom(){}
    public Zom(String zom)
    {
            zoom=zom;
    }
    public Zom(JSONObject c)
    {
            try 
            {
                    this.id=c.getString("ID");
                    this.zoom=c.getString("ZOOM");
                    this.id_lokalizacji=c.getString("ID_LOKALIZACJI");
            } 
            catch (JSONException e) 
            {
                    e.printStackTrace();
            }
            
    }
    public   String ta(){
            return "zoom";
    }
    public Map<String,String> toString_()
    {
            Map<String,String> c=new HashMap<String, String>();
            c.put("key",key);
            c.put("URL",POLATABEL.URL);
            c.put("z", POLATABEL.ZOOM_TABELA);      
            c.put("TABELA",POLATABEL.ZOOM_TABELA/*ta()*/);
            c.put("POLA",POLATABEL.ZOOM_POLA);
            return c;
    }
    @Override
    public int compareTo(Zom another) {
            return zoom.compareTo(another.zoom);
    }
}
